package com.university.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.university.pojo.cqe.query.MovieQuery;
import com.university.pojo.dto.FoodOrderDTO;
import com.university.pojo.dto.MovieOrderAdminDTO;
import com.university.pojo.dto.MovieOrderUserDTO;
import com.university.pojo.entity.MovieOrder;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface MovieOrderMapper extends BaseMapper<MovieOrder> {

    List<MovieOrderUserDTO> userGetMovieOrder(MovieQuery query);

    IPage<MovieOrderAdminDTO> adminGetMovieOrderPage(IPage<FoodOrderDTO> page, @Param("query") MovieQuery query);
}
